package cn.blossoming.service.video;

import cn.blossoming.dao.domain.VideoEntity;
import cn.blossoming.service.base.BaseService;
import cn.blossoming.service.dto.Video;
import cn.blossoming.service.dto.VideoComment;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface VideoService extends BaseService<VideoEntity, Integer> {
    List<Video> findPage(PageRequest pageRequest);

    Video getVideoById(int id);

    Video praiseVideo(int id);

    List<VideoComment> getCommentsByVideoId(int id, PageRequest pageRequest);

    void videoCommentPraise(int id);

    void addVideoComment(int id, String content);

    void addVideoCommentComment(int commentId, String content, int videoId);

    List<VideoComment> getVideoCommentCommentByCommentId(int commentId, PageRequest pageRequest);

    List<Video> findPageByUser(int userId, PageRequest pageRequest);
}
